package com.itfitness.googlemappoi.http

import android.widget.TextView
import com.itfitness.googlemappoi.bean.GeocodeAddressBean
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*


interface ApiService {

    //GET请求
//    @GET("/maps/api/geocode/json")
//    suspend fun getAddress(@Query("latlng") latlng: String?,@Query("language") language: String?
//            ,@Query("fields") fields: String?,@Query("key") key: String?): GeocodeAddressBean

    //GET请求
    @GET("/maps/api/geocode/json")
    fun getAddress(@Query("latlng") latlng: String?,@Query("language") language: String?
                           ,@Query("fields") fields: String?,@Query("key") key: String?): Call<GeocodeAddressBean>
}